Einhugur macOS Bridge plugin.

NSRunningApplication.Terminate Method

Attempts to quit the receiver normally.

Terminate() as Boolean

Parameters

Returns

Boolean
Returns true if the request was successfully sent, otherwise false.

Remarks

This method will return false if the application is no longer running when the terminate message is sent to the receiver.

This method may return before the receiver exits; you should observe the terminated property to determine when the application terminates.

Sandboxed applications can’t use this method to terminate other applications. This method returns NO when called from a sandboxed application.

See Also

NSRunningApplication Class